package com.haven123.cloudapp.webbase.web;

import lombok.Builder;

import java.io.Serializable;

@Builder
public class BaseResponse<T> implements Serializable {
    public String message;
    public int code;
    public T msgEntity;
    public static BaseResponse success=BaseResponse.builder().code(1).message("success").build();
    public static BaseResponse fail=BaseResponse.builder().code(2).message("error").build();

}
